package axiba;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		StringBuilder stringB = new StringBuilder();
		while(sc.hasNextInt())
		{
			int n=sc.nextInt();
			int x=sc.nextInt();
			int y=sc.nextInt();
	        for(int i=0;i<n;i++)
	        {
	        	stringB.append(i);
	        }
	        System.out.println(stringB.substring(x, y));
		}
        sc.close();
	}
}